// $Header: $

using System;
using System.Data;
using System.Collections.Generic;


namespace LogParser
{
    /// <summary>
    /// Summary description for LogParser.Match.
    /// </summary>
    public class Match
    {
        #region Public Member Variables

        public string LogFileName = string.Empty;
        public string LogFilePath = string.Empty;
        public string Map = string.Empty;

        public int RedFinalScore = 0;
        public int BlueFinalScore = 0;

        public DateTime MatchStartTime;
        public DateTime MatchEndTime;

        #endregion

        #region Constructor
        /// <summary>
        /// Initializes a new instance of the <see cref="Match"/> class.
        /// </summary>
        public Match( )
        {
            //
            // TODO: Add constructor logic here
            //
        }
        #endregion

        #region Public Properties

        public int TotalLength
        {
            get
            {
                System.TimeSpan difference = MatchEndTime.Subtract(MatchStartTime);
                int totalLength = -1;
                
                if (difference.TotalSeconds > 0)
                    totalLength = Convert.ToInt32( difference.TotalSeconds );
                
                return totalLength;
            }
        }

        #endregion

        #region Private Properties

        #endregion

        #region Public Member Functions

        #endregion

        #region Private Member Functions

        #endregion
    }
}

#region VSS Log

/*
 * $Log: $
 */

#endregion VSS Log